package jiu;

/**
 * Created by mc on 2016/7/29.
 */
import java.util.*;
class Student{
    String number;
    String name;
    int score;
    Student(String number,String name,int score){
        this.number = number;
        this.name = name;
        this.score = score;
    }
}
public class si
{
    public static void main(String[] arges)
    {
        Set<Student> students = new TreeSet<>();
        students.add(new Student("B1234","Justin",90));
        students.add(new Student("B5678","Monica",100));
        foreach(students);
    }
    private static void foreach(Collection<Student> students){
        for(Student student : students){
            System.out.println(student.score);
        }
    }
}
